namespace Digitalmes.Domain.Entities.Mes.Andons;

/// <summary>
/// 安灯报警处理记录。
/// </summary>
[SugarTable("andon_resolution")]
public sealed class AndonResolution : EntityBase
{
    /// <summary>
    /// 警报 Id。
    /// </summary>
    public long AlertId { get; set; }

    /// <summary>
    /// 开始处理时间
    /// </summary>
    public DateTime StartTime { get; set; }

    /// <summary>
    /// 处理结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 处理方案
    /// </summary>
    public string? Resolution { get; set; }

    /// <summary>
    /// 处理人员
    /// </summary>
    public string? ResolvedBy { get; set; }

    /// <summary>
    /// 处理状态，'in_progress', 'completed'。
    /// </summary>
    public int Status { get; set; }
}
